#ifndef WEFUCKAPI_H
#define WEFUCKAPI_H

#include "wefuckcookiejar.h"

#include <QNetworkAccessManager>
#include <QObject>
#include <QSqlQueryModel>

class WeFuckApi : public QObject
{
    Q_OBJECT
    Q_PROPERTY(QStringList frendList READ getFrendList WRITE setFrendList NOTIFY frendListChanged)
public:
    explicit WeFuckApi(QObject *parent = Q_NULLPTR);

    QStringList getFrendList() const;
    void setFrendList(const QStringList &value);


    QSqlQueryModel frendModel;

public slots:
    void getFrendsList();

signals:
    void wantList();
    void frendListChanged();

private:
    WeFuckCookieJar cookieJar;
    QNetworkAccessManager manager;
    QStringList frendList;
};

#endif // WEFUCKAPI_H
